package utils.node;

import gui.display.Display;
import utils.Chat;

/**
 *
 */
public class ChatNode extends DisplayNode
{
    private final Chat chat_;
    
    public ChatNode( Chat chat )
    {
        super();
        chat_ = chat;
    }
    
    public Chat getChat()
    {
        return chat_;
    }

    @Override
    public Display getDisplay() {
        return chat_.getDisplay();
    }

    @Override
    public void remove() {
        chat_.part();
    }
    
    @Override
    public String toString()
    {
        return chat_.getName();
    }
}
